﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Nodes="clr-namespace:DiagramCreator.Nodes"
    xmlns:Diagram="clr-namespace:DiagramCreator.Diagram"
	xmlns:UIControls="clr-namespace:DiagramCreator"
    x:Class="DiagramCreator.Window1"
    Title="Window1" Height="622" Width="460"
    Background="LightBlue">
    <Window.Resources>
        <Style x:Key="ButtonStyle" TargetType="Button">

        </Style>
    </Window.Resources>
    <DockPanel Name="rootLayout" Background="{DynamicResource NormalBackgroundBrush}">
        <WrapPanel Name="MenuPanel" DockPanel.Dock="Top" Height="Auto" Width="Auto" Background="{x:Null}" Margin="0,2,0,6">
            <UIControls:StyledButton Height="30" Margin="4,0,0,0" x:Name="BtnSave" Click="BtnSave_MouseDown">
                Save
            </UIControls:StyledButton>            
            <UIControls:StyledButton Height="30" Margin="4,0,0,0" x:Name="BtnExport" Click="BtnExport_Click">
                Export
            </UIControls:StyledButton>
            <UIControls:StyledButton Height="30" Margin="4,0,0,0" x:Name="BtnOpen" Click="BtnOpen_MouseDown">
                Open
            </UIControls:StyledButton>
            <UIControls:StyledButton Height="30" Margin="4,0,0,0" x:Name="BtnToLeft" Click="BtnToLeft_MouseDown">
                To left
            </UIControls:StyledButton>
            <UIControls:StyledButton Height="30" Margin="4,0,0,0" x:Name="BtnToRight" Click="BtnToRight_MouseDown">
                To right
            </UIControls:StyledButton>
            <UIControls:StyledButton Height="30" Margin="4,0,0,0" x:Name="BtnToTop" Click="BtnToTop_Click">
                To up
            </UIControls:StyledButton>
            <UIControls:StyledButton Height="30" Margin="4,0,0,0" x:Name="BtnToBottom" Click="BtnToBottom_Click">
                To bottom
            </UIControls:StyledButton>
            <UIControls:StyledButton Height="30" Margin="4,0,0,0" x:Name="BtnCenterVertical" Click="BtnCenterVertical_Click">
                Ceneter vertically
            </UIControls:StyledButton>
            <UIControls:StyledButton Height="30" Margin="4,0,0,0" x:Name="BtnCenterHorizontal" Click="BtnCenterHorizontal_Click">
                Center horizontally
            </UIControls:StyledButton>
            <UIControls:StyledButton Height="30" Margin="4,0,0,0" x:Name="BtnDistributeVertical" Click="BtnDistributeVertical_MouseDown">
                Auto-position vertically
            </UIControls:StyledButton>
            <UIControls:StyledButton Height="30" Margin="4,0,0,0" x:Name="BtnDistributeHorizontal" Click="BtnDistributeHorizontal_MouseDown">
                Auto-position horizontally
            </UIControls:StyledButton>
        </WrapPanel>
        <TabControl Style="{StaticResource TabControlSyle}" BorderThickness="0" Name="TabManager" Width="Auto" Height="Auto" IsSynchronizedWithCurrentItem="True">
    		<TabItem Style="{StaticResource TabItemStyle}" FontFamily="Verdana" FontSize="14">
                <TabItem.Header>
                    <StackPanel Orientation="Horizontal">
                        <Label Margin="0,0,10,0" Padding="0,0,0,0">Diagram</Label>
                        <Image Margin="0,0,0,0" Source="Resources\cancel.png" MouseDown="Image_MouseDown" 
                               SnapsToDevicePixels="False"
                               Width="12" Height="12"></Image>
                    </StackPanel>
                </TabItem.Header>
                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                    <Diagram:DiagramSheet Width="Auto" Height="Auto" Background="White"/>
                </ScrollViewer>
            </TabItem>
            <TabItem Style="{StaticResource TabItemStyle}" FontFamily="Verdana" FontSize="14">
                <TabItem.Header>
                    <StackPanel>
                        <Image SnapsToDevicePixels="False" Source="Resources\edit_add.png" Width="12" Height="12"></Image>
                    </StackPanel>
                </TabItem.Header>
                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">                    
                </ScrollViewer>
            </TabItem>
    	</TabControl>
    </DockPanel>
</Window>
